
import java.io.Serializable;

/**
 * DroidChatMessage is any message sent between the 
 *  DroidChat user and the server
 */

public class DroidChatMessage implements Serializable {
	private int messageType;
	
	public static final int SERVER_HEARTBEAT = 1;
	public static final int CLIENT_LOGIN = 2;
	public static final int CLIENT_LOGIN_RESPONSE = 3;
	public static final int CLIENT_REGISTER = 4;
	public static final int CLIENT_REGISTER_RESPONSE = 5;
	public static final int CLIENT_PUBLIC_KEY = 6;
	public DroidChatMessage(int type){
		messageType = type;
	}
	
	public String toString(){
		return Integer.toString(messageType);
	}
}
